package com.example.demo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description: 公共返回对象
 * @Param:
 * @Author:
 * @Date:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RespBean {

    private String code;

    private String message;

    private Object obj;

    public static RespBean success(String code, String message, Object obj){
        return new RespBean(code, message, obj);
    }

    public static RespBean error(String code, String message, Object obj){
        return new RespBean(code, message, obj);
    }
}
